<template>
  <div>
   <button @click="getStudent">获取学生信息</button>
  </div>
</template>

<script>
//引入组件
import axios from 'axios'
export default {
  name: "App",
  methods: {
    axios.get('http://localhost : 8080/api/ students')then(
      response=>{
        console.log('成功',response.data);
      },
      error=>{}
    )
  },
};
</script>
